﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using log4net;

[assembly: log4net.Config.XmlConfigurator()]
namespace UDPAgency
{
    
    public class MyTraceListener : TraceListener
    {
        private ILog _Log;
        public MyTraceListener()
        {
            _Log = LogManager.GetLogger(typeof(MyTraceListener));
        }

        public override void Write(string message)
        {
            _Log.Info(message);
        }

        public override void WriteLine(string message)
        {
            _Log.Info(message + Environment.NewLine);
        }
    }
}
